//写一个宏，可以将一个整数的二进制位的奇数位和偶数位交换
#pragma warning(disable:4996)
#include<stdio.h>
int Find_Odd(num) 
{
	return num & 1;
}
int Find_Even(num)
{
	return num & 1;
}
int main()
{
	int num, odd, even, tmp;
	scanf("%d", &num);
	while (num) {
		odd = Find_Odd(num);//找出奇数位
		num >>= 1;
		even = Find_Even(num);//找出偶数位
		num >>= 1;
		tmp = odd;
		odd = even;
		even = tmp;
	}
	
	return 0;
}
//while(<32)

//Swap